package sort;

/**
 * @author yuisama
 * @date 2022/03/15 19:53
 **/
public class SortTest {
    public static void main(String[] args) {
        int n = 50000;
        int[] arr = SortHelper.generateRandomArray(n,0,Integer.MAX_VALUE);
        int[] arr1={5,7,8,9,4,3,2,10,1,6};
//        int[] arrCopy1 = SortHelper.arrCopy(arr);
//        int[] arrCopy2 = SortHelper.arrCopy(arr);
//        int[] arrCopy3 = SortHelper.arrCopy(arr);
//        SortHelper.testSort("selectionSort",arr);
//        SortHelper.testSort("bubbleSort",arrCopy1);
//        SortHelper.testSort("heapSort",arrCopy2);
        SortHelper.testSort("mergeSort",arr1);
    }
}